//---------------------------------------------------------------------------

#ifndef USERH
#define USERH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>
#include "cxButtons.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include <ActnList.hpp>
#include "cxClasses.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxDBData.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridDBTableView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxStyles.hpp"
#include <DB.hpp>
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include "cxTreeView.hpp"
#include "cxInplaceContainer.hpp"
#include "cxTextEdit.hpp"
#include "cxTL.hpp"
#include "cxTLdxBarBuiltInMenu.hpp"
#include "cxDBTL.hpp"
#include "cxMaskEdit.hpp"
#include "cxTLData.hpp"
#include "cxShellCommon.hpp"
#include "cxShellTreeView.hpp"
#include <ShlObj.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrUSER : public TForm
{
__published:	// IDE-managed Components
	TActionList *ActionList1;
	TAction *ADD_MENU;
	TAction *DELETE_MENU;
	TAction *SAVE_MENU;
	TPageControl *pcLG;
	TTabSheet *tabMENU;
	TPanel *pTable;
	TcxGroupBox *gbTable;
	TPanel *pEdit;
	TcxGroupBox *gbEdit;
	TPanel *pUPR;
	TcxButton *btAdd;
	TcxButton *btDelete;
	TcxButton *btSave;
	TTabSheet *TabROLE;
	TLabel *Label2;
	TLabel *Label1;
	TLabel *Label3;
	TLabel *Label4;
	TDBEdit *dbeKOD;
	TDBEdit *dbeNAIM_ID;
	TDBEdit *dbeNAIM;
	TDBLookupComboBox *cbTIP_MENU;
	TPanel *pTable_INTERF;
	TPanel *pEDIT_INTERF;
	TPanel *pUPR_INTERF;
	TcxButton *btADD_INTERF;
	TcxButton *btDELETE_INTERF;
	TcxButton *btSAVE_INTERF;
	TcxGroupBox *gbTable_Interfeis;
	TcxGroupBox *gbEdit_Interfeis;
	TAction *ADD_INTERF;
	TAction *DELETE_INTERF;
	TAction *SAVE_INTERF;
	TLabel *Label5;
	TLabel *Label6;
	TDBEdit *dbeKOD_INTERF;
	TDBEdit *dbeNAIM_INTERF;
	TTabSheet *TabUSER;
	TPanel *pTABLE_USER;
	TPanel *pEDIT_USER;
	TPanel *Panel1;
	TcxButton *btADD_USER;
	TcxButton *btDELETE_USER;
	TcxButton *btSAVE_USER;
	TAction *ADD_USER;
	TAction *DELETE_USER;
	TAction *SAVE_USER;
	TcxGroupBox *gbTABLE_USER;
	TcxGroupBox *gbEDIT_USER;
	TcxGrid *sgUSER;
	TcxGridDBTableView *cxGridDBTableView2;
	TcxGridLevel *cxGridLevel2;
	TcxGridDBColumn *login;
	TcxGridDBColumn *NAIM_USER;
	TcxGridDBColumn *ROLE;
	TcxGridDBColumn *KOD_OP;
	TcxGridDBColumn *Password;
	TLabel *Label7;
	TLabel *Label8;
	TLabel *Label9;
	TLabel *Label10;
	TLabel *Label11;
	TDBEdit *dbeLogin;
	TDBEdit *dbeNAIM_USER;
	TDBLookupComboBox *cbROLE;
	TDBEdit *dbeKOD_OP;
	TDBEdit *dbePassword;
	TcxGridDBColumn *KOD_USER;
	TLabel *Label12;
	TDBEdit *dbeKOD_USER;
	TcxButton *cxButton1;
	TAction *SPRTIP_MENU;
	TcxGrid *sgINTERF;
	TcxGridDBTableView *cxGridDBTableView1;
	TcxGridDBColumn *KOD_INTERF;
	TcxGridDBColumn *NAIM_INTERF;
	TcxGridLevel *cxGridLevel1;
	TcxDBTreeList *cxDBTreeList1;
	TcxDBTreeListColumn *cxDBTreeList1cxDBTreeListColumn1;
	TcxDBTreeListColumn *cxDBTreeList1cxDBTreeListColumn2;
	TcxDBTreeListColumn *cxDBTreeList1cxDBTreeListColumn3;
	TLabel *Label13;
	TDBEdit *dbeFORM;
	TIBCQuery *dsetMENU;
	TIBCQuery *dsetINTERF;
	TIBCQuery *dsetUSER;
	TIBCQuery *dsetROLE;
	TIBCDataSource *dsMENU;
	TIBCDataSource *dsINTERF;
	TIBCDataSource *dsUSER;
	TIBCDataSource *dsROLE;
	TIBCQuery *dsetTIP_MENU;
	TIBCDataSource *dsTIP_MENU;
	TIBCQuery *dsetPARENT;
	TIBCDataSource *dsPARENT;
	void __fastcall FormKeyPress(TObject *Sender, char &Key);
	void __fastcall tabMENUShow(TObject *Sender);
	void __fastcall ADD_MENUExecute(TObject *Sender);
	void __fastcall dbeNAIM_IDKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeNAIMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall cbTIP_MENUKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall SAVE_MENUExecute(TObject *Sender);
	void __fastcall DELETE_MENUExecute(TObject *Sender);
	void __fastcall TabROLEShow(TObject *Sender);
	void __fastcall ADD_INTERFExecute(TObject *Sender);
	void __fastcall SAVE_INTERFExecute(TObject *Sender);
	void __fastcall dbeNAIM_INTERFKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall DELETE_INTERFExecute(TObject *Sender);
	void __fastcall cxGridDBTableView1DblClick(TObject *Sender);
	void __fastcall TabUSERShow(TObject *Sender);
	void __fastcall ADD_USERExecute(TObject *Sender);
	void __fastcall dbeLoginKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall dbeNAIM_USERKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall cbROLEClick(TObject *Sender);
	void __fastcall dbeKOD_OPKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbePasswordKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall SAVE_USERExecute(TObject *Sender);
	void __fastcall DELETE_USERExecute(TObject *Sender);
	void __fastcall SPRTIP_MENUExecute(TObject *Sender);
	void __fastcall cxDBTreeList1Click(TObject *Sender);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall dbeFORMKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);

private:	// User declarations
public:		// User declarations
	__fastcall TfrUSER(TComponent* Owner);
	int __fastcall TfrUSER::PARENT(String TIP_MENU);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrUSER *frUSER;
//---------------------------------------------------------------------------
#endif
